/*
 * @Descripttion:
 * @Version:
 * @Author: kangluon
 * @Date: 2020-06-29 10:27:27
 * @LastEditors: kangluon
 * @LastEditTime: 2020-06-29 11:28:16
 */

import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "index",
    component: () => import("@/views/index.vue")
  },
  {
    path: "/home",
    name: "home",
    component: () => import("@/views/home.vue")
  }
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes
});

export default router;
